地図:北海道

説明

指定した座標に北海道を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x+8,y,c,2,14,15,15,15,7,7,7);
uart(n,14,3,x+16,y,c,0,0,0,128,192,224,224,240);
y=y+8;
uart(n,14,3,x+8,y,c,7,7,7,7,15,7,15,31);
uart(n,14,3,x+16,y,c,248,252,254,255,255,255,255,255);
uart(n,14,3,x+24,y,c,0,0,0,0,224,252,252,255);
uart(n,14,3,x+32,y,c,0,0,0,8,24,48,96,224);
y=y+8;
uart(n,14,3,x,y,c,0,0,0,0,12,15,7,7);
uart(n,14,3,x+8,y,c,63,31,31,31,31,191,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,255,255,255,255,255,255,255,251);
uart(n,14,3,x+32,y,c,224,240,240,240,248,252,224,128);
y=y+8;
uart(n,14,3,x,y,c,15,63,127,113,112,240,122,63);
uart(n,14,3,x+8,y,c,255,255,243,193,128,0,0,0);
uart(n,14,3,x+16,y,c,255,255,255,255,127,63,15,2);
uart(n,14,3,x+24,y,c,224,192,128,0,0,0,0,0);
y=y+8;
uart(n,14,3,x,y,c,31,63,56,56,48,0,0,0);
uart(n,14,3,x+8,y,c,128,192,0,0,0,0,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る